#pragma once
#include <iostream>
#include <list>
#include "Community.h"
using namespace std;

struct STRNode {

	Community* com;
	Rectangle* MBR;
	bool isLeaf = true;
	list<STRNode*> child;

	STRNode() {}

	STRNode(Community* com, bool isLeaf, list<STRNode*> child) {
		this->com = com;
		this->MBR = com->rect;
		this->isLeaf = isLeaf;
		this->child = child;
	}

	STRNode(Rectangle* mbr, bool isLeaf, list<STRNode*> child) {
		this->MBR = mbr;
		this->isLeaf = isLeaf;
		this->child = child;
	}

};